@ crt0.S: Execution startup routine
@
@ Authors: Nora Tarano ntarano@andrew.cmu.edu
@          Yuan Meng   yuanm@andrew.cmu.edu
@          Yipeng Yun  yipengy@andrew.cmu.edu
@ Date:    Sat Oct 15, 2011

#include <bits/swi.h>

	.file	"crt0.S"
	.text

	.extern	main

	.global	_start
_start:
	ldr	r0, [sp], #4	@ arg1 = argc, sp += 4
	mov	r1, sp			@ arg2 = argv
	bl	main			@ call main()
	swi	EXIT_SWI
